home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June / CHIP 2006-06.2.iso / program / freeware / Democracy-0.8.2.exe / xulrunner / python / compiled_templates / foldertab_selected.py < prev    next >
Encoding:
Python Source  |  2006-04-10  |  1.6 KB  |  32 lines

  1. # This is a generated file. Do not edit.
  2. from template import Handle, fillAttr, quoteAndFillAttr, funcTable
  3. from IOBuffer import IOBuffer
  4. from xhtmltools import urlencode
  5. from templatehelper import quoteattr, escape, evalKey, toUni
  6. def fillTemplate(data, domHandler):
  7.     # Start of handle
  8.     handle = Handle(domHandler)
  9.     handle.makeNamedView(u'feeds',u'folder feedlist',None,None,None,None,None,False,None,None,False,data)
  10.     handle.addView('tmplcomp50021285','nextSibling',handle.findNamedView(u'feeds').getView(),[(0, u'<a class='), (10, u'feeditem infolder'), (3, None), (0, u'\n<img src='), (10, u'resource:images/feedicon.png'), (0, u' class='), (10, u'icon'), (0, u'></img><span class='), (10, u'name'), (0, '>'), (4, u'this getTitle'), (0, u'</span>\n</a>')], data, u'feeds')
  11.  
  12.  
  13.     out = IOBuffer()
  14.     out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n")
  15.     out.write(u'<span xmlns:t=')
  16.     out.write(quoteAndFillAttr(u'http://www.participatorypolitics.org/',data))
  17.     out.write(u'>\n\n \n \n\n<a class=')
  18.     out.write(quoteAndFillAttr(u'feeditem selected_feeditem',data))
  19.     out.write(u'>\n<img src=')
  20.     out.write(quoteAndFillAttr(u'resource:images/arrow.png',data))
  21.     out.write(u' class=')
  22.     out.write(quoteAndFillAttr(u'icon',data))
  23.     out.write(u'></img><span class=')
  24.     out.write(quoteAndFillAttr(u'name',data))
  25.     out.write('>')
  26.     out.write(escape(evalKey(u'folder getTitle',data)))
  27.     out.write(u'</span>\n</a>\n<span id="tmplcomp50021285"/>\n</span>')
  28.     out.close()
  29.  
  30.  
  31.     return (out, handle)
  32.